added script to javascript folder, changed index to read from local file instead of web