Cleaned up coffeescript and removed console.log calls