changed file into JS format