Fixes incorrect jquery selector
Tidies up some things, still breaks rspec