alter into pure js calc
worked in pure js
deleted files in coffeescript
updated errors