validation js file cleanup