Added the last portion of the js script.