moved threex script into index because it was not loading in heroku