updated script
updated js script