js loading slowly locally