[mod] try to fix race condition for js loading