converting coffee script to js file

Reverting the changes made to js file since the changes stopped working after gem change