Convert Coffee to JS for node-webkit support