Separates JS into files, updates manifest