fix for ajax vs non-ajax reqs
more logging
Merge pull request #36 from kapilgoenka/master

fix for ajax vs non-ajax reqs + more logging