fix validation js file