Fixed script references to work when deployed to remote server