Holding references to JavaScript objects