clean up js code whitespace