removing unused js and converting js to coffee script

trying to get coffee script work

fixing the issue with coffee script