An attempt to clean up ajax code related to cache
Code style change
Add a test
Merge pull request #47 from walmartlabs/ajax-cleanup

An attempt to clean up ajax code related to cache