try conditional js loading