adapted js files to changes