polish it a little bot
refactor applitcaion.js to use the short version of jquery.post