Cleanup javascript so it passes JSLint tests
Merge pull request #74 from wilsonge/feature-ajax

Cleanup javascript so it passes JSLint tests