fix js require bug on nomadtrips https://twitter.com/natedalliard/status/1072525934144708608