Working with the JavaScript one of the confusing thing is when using this
this
var x = { ele : \'test\', init : function(){ alert(this.ele)
use
var me = this;
outside of the
function(){
then you can refer to me inside the function()