added logic to add script files to index
Merge pull request #4 from mohammadumairkhan/develop

added logic to add script files to index