accepted pull request by jgallred. pull request broke jasmine tests when run via node because previous tests did not do proper cleanup. fixed this with Validator.register udpate