Fixed <Object> has no method 'match' in package.js