Have changed the MODULE to JSB and also bring couple of helper methods into main js