more js cleaning & adjustments: spacing, indents & missing semicolons