Separate out scripts and styles from the index file.