Update main_ajax.js

small fix
Merge pull request #9 from creative84/patch-8

Update main_ajax.js