Updated RegX js for Yuidoc
privatised errors object, now passed to onFailure callback
Updates to RegX + Documentation