split files into index, style and script