convert js to coffee

I though coffeescript is nicer, so i convert javascript to coffeescript.
I am not sure that the plugins.coffee work as expected because i dont know how to test this.
Also i fix a bug that causing when refreshing page and the position of page is not in top