Update application.js

First edit.  How can we access the socket properly in the init function?
Merge pull request #39 from shopapps/patch-1

Update application.js