Fixing trailing whitespace warning from JSHint
JSHint tweaks to avoid bogus errors.