Minor whitespace JS cleanup related to #805704