javascript: Break long lines and cleanup whitespace