Trying to fix Java script
Removed non-required code.