works with ajax
Merge pull request #5 from iddqd1/master

works with ajax