almost done with js
Merge pull request #31 from jojo89/fix_ajax

almost done with js