test for isExpired
test for ajax request
tweaked jshint settings