Stackmob javascript