Whoops, stripped leftover semi-colon that makes jshint unhappy
Added explicit map implementation too, for further IE compatibility