More robust cookie parsing
Fix jshint errors
Merge pull request #11 from galileo-press/master

More robust cookie parsing