Added in new js script to improve efficiency