initial js file for password checking logic