Removed redundant files and fixed valid.js