Changes to index

- add setCustomValidity
- refactor method additions
- remove jquery dependency