Some small fixes
Merge pull request #1 from bmneely/ajax

Some small fixes