fix script error on http 204 (no content)

When the server returns no content the results are an empty string.  `JSON.parse('')` throws.
Merge pull request #12 from brianc/master

fix script error on ajax 204 result parsing
Merge branch 'master' into 13-remember-me