Fixed "document.ready" error in CoffeeScript file.