Update validator.js

Added missing semi-colons