Tweaks js syntax