Implemented javascript validator callbacks.
Merge branch 'structured-html' of github.com:Siyavula/cnxml-validator into structured-html