Shrinked a bit of jQuery calls to $
Replaced the stateManager.coffee file with its JS version