Fixing javascript errors and updating styles and jsb file