Fixes #5 IE incompatibilities

* 'default' is a reserwed keyword in switch/case. Most other browsers
  seem to accept it in other contexts
* IE does not like trailing commas