Beautified code

also removed console.log