Properly load js files