clean up in js files