repaired main js files