js new file and change layout