JS formatting tweaks based on PR feedback