Update index.js

added semicolons to validations