Code - refractor changes

- Moved all JavaScript code to custom.js for (index.html and
restore_password.html)