cleaning up the script
cleaning up the js