Fixes #4. Thanks @mathiasbynens!