codejoust/session.js — pull request #18 by alampros (2012-02-01 18:18:14+00:00)
Title: Hotfix "Cannot set property 'version' of null" error

@x909 suggested this fix in #16. Just refactored and submitted a pullreq for your pleasure.

In Safari/Webkit, the error looks like this:

```
TypeError: 'null' is not an object (evaluating 'obj.version = API_VERSION'). session.js:373
```

And for Chrome:

```
Uncaught TypeError: Cannot set property 'version' of null. session.js:373
```