splitted JS into a file