Fix validation error of unused variable
Add index.js into validation task