Fixed script for index to load the javascript file.