fix js loading in theme