Update javascript/main.js

Looked for anywhere I might have missed using the $ factory and also changed my .bind to .on