Removed some code smells
Using gemified version of jQuery and jQuery UI