Indented the code
Removed unwanted console.log line breaks