updated script.js and fixed symlinks