fix js require bug