Miscellaneous JS standards fixes.