Minor JS Fixes.
Rubocop improvements.