main.js using jquery except the ajax part