Clean up javascript and python whitespace