examples for how 'this' works in javascript