Tweaks for valid javascript.