Revert "js script chenges"

This reverts commit aa8126e6a649d1277e79bbc2c4cc0693d65332c0.