Fixing javascript framework