Wiped out old action.js and added the latest javascript codes
Removed all scripts and added them to action.js