Attemp to get addScriptToIndex working