Javascript implementation

Helpers in Rails are for doing view work.  That's not what's happening here.