Working with the JavaScript one of the confusing thing is when using this
this
var x = { ele : \'test\', init : function(){ alert(this.ele)
It is very confusing. It depends on how you call the function. Doug Crockford did a good write-up in his book Javascript, the Good Parts. The gist of it is in this excellent answer to an otherwise badly formulated question.
And no, it's not about performance.