Cleans up JS. Adds comments