Throw error on invalid extraProperties

See issue #10
missing closing quote `throw new TypeError('Invalid value for "extraProperties: ' + extraProperties + '"');`