made some changes to personal js file

made some changes to personal js file in conditionals