js files now working properly