Update core.js

Add "method" field to error list entry to check what kind of validation rule was broken, so we could find a difference between required or regex validation error raised.