Adding missing dependency jquery-ui-rails
Refactoring JavaScript hence allowing other scripts to reload spaghetti
Merge pull request #3 from owahab/master

Fixing issue #1 and #2