updated js script