fixing javascript.