Update javascript
Clean up the helper
Fixed up compability with newest paperclip and Rails 4