Fixing js loading