updated linker to support array of main index files to attach scripts and styles.