changed test/ to scripts/ in addScriptToIndex function