adds edit to js file