converted js to coffeescript
updated gitignore to ignore temp and log files
Merge pull request #80 from oafridi/refactor

Refactor