fix inline JS code