change the method to add js files