fixing javascript style