Included JSLint suggestions

The JavaScript has been reformated according to JSLint's suggestions.