Fix bag comparison in javascript tests
Fix bag comparison in javascript tests

Review 1249 by @Tryneus
Closes #1983

losywee/rethinkdb,wkennington/rethinkdb,catroot/rethinkdb,marshall007/rethinkdb,mquandalle/rethinkdb,gavioto/rethinkdb,sebadiaz/rethinkdb,matthaywardwebdesign/rethinkdb,gdi2290/rethinkdb,mbroadst/rethinkdb,robertjpayne/rethinkdb,greyhwndz/rethinkdb,alash3al/rethinkdb,jmptrader/rethinkdb,bpradipt/rethinkdb,sbusso/rethinkdb,AntouanK/rethinkdb,niieani/rethinkdb,dparnell/rethinkdb,jmptrader/rethinkdb,KSanthanam/rethinkdb,losywee/rethinkdb,Wilbeibi/rethinkdb,Wilbeibi/rethinkdb,mbroadst/rethinkdb,sontek/rethinkdb,KSanthanam/rethinkdb,JackieXie168/rethinkdb,jesseditson/rethinkdb,urandu/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,ajose01/rethinkdb,gavioto/rethinkdb,alash3al/rethinkdb,sontek/rethinkdb,sbusso/rethinkdb,KSanthanam/rethinkdb,rrampage/rethinkdb,captainpete/rethinkdb,elkingtonmcb/rethinkdb,pap/rethinkdb,rrampage/rethinkdb,JackieXie168/rethinkdb,mcanthony/rethinkdb,yakovenkodenis/rethinkdb,gavioto/rethinkdb,JackieXie168/rethinkdb,pap/rethinkdb,jmptrader/rethinkdb,victorbriz/rethinkdb,JackieXie168/rethinkdb,bpradipt/rethinkdb,pap/rethinkdb,RubenKelevra/rethinkdb,bpradipt/rethinkdb,captainpete/rethinkdb,Wilbeibi/rethinkdb,AntouanK/rethinkdb,victorbriz/rethinkdb,grandquista/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,4talesa/rethinkdb,victorbriz/rethinkdb,KSanthanam/rethinkdb,wkennington/rethinkdb,RubenKelevra/rethinkdb,pap/rethinkdb,elkingtonmcb/rethinkdb,pap/rethinkdb,niieani/rethinkdb,spblightadv/rethinkdb,sebadiaz/rethinkdb,alash3al/rethinkdb,bpradipt/rethinkdb,wojons/rethinkdb,jesseditson/rethinkdb,sebadiaz/rethinkdb,wojons/rethinkdb,lenstr/rethinkdb,elkingtonmcb/rethinkdb,mcanthony/rethinkdb,AntouanK/rethinkdb,AntouanK/rethinkdb,wkennington/rethinkdb,catroot/rethinkdb,gdi2290/rethinkdb,urandu/rethinkdb,yaolinz/rethinkdb,JackieXie168/rethinkdb,gavioto/rethinkdb,bchavez/rethinkdb,ayumilong/rethinkdb,RubenKelevra/rethinkdb,scripni/rethinkdb,matthaywardwebdesign/rethinkdb,losywee/rethinkdb,wkennington/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,mquandalle/rethinkdb,sontek/rethinkdb,lenstr/rethinkdb,4talesa/rethinkdb,mquandalle/rethinkdb,mquandalle/rethinkdb,niieani/rethinkdb,greyhwndz/rethinkdb,tempbottle/rethinkdb,grandquista/rethinkdb,RubenKelevra/rethinkdb,bchavez/rethinkdb,robertjpayne/rethinkdb,grandquista/rethinkdb,RubenKelevra/rethinkdb,Qinusty/rethinkdb,dparnell/rethinkdb,urandu/rethinkdb,bchavez/rethinkdb,wojons/rethinkdb,ajose01/rethinkdb,pap/rethinkdb,jesseditson/rethinkdb,victorbriz/rethinkdb,sontek/rethinkdb,yakovenkodenis/rethinkdb,jmptrader/rethinkdb,mbroadst/rethinkdb,greyhwndz/rethinkdb,KSanthanam/rethinkdb,AntouanK/rethinkdb,4talesa/rethinkdb,mquandalle/rethinkdb,RubenKelevra/rethinkdb,urandu/rethinkdb,spblightadv/rethinkdb,wujf/rethinkdb,wojons/rethinkdb,rrampage/rethinkdb,sontek/rethinkdb,JackieXie168/rethinkdb,wujf/rethinkdb,JackieXie168/rethinkdb,Qinusty/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,gavioto/rethinkdb,grandquista/rethinkdb,captainpete/rethinkdb,yaolinz/rethinkdb,wojons/rethinkdb,bpradipt/rethinkdb,mcanthony/rethinkdb,ajose01/rethinkdb,wujf/rethinkdb,wkennington/rethinkdb,greyhwndz/rethinkdb,bchavez/rethinkdb,mbroadst/rethinkdb,mcanthony/rethinkdb,sebadiaz/rethinkdb,jesseditson/rethinkdb,catroot/rethinkdb,bpradipt/rethinkdb,greyhwndz/rethinkdb,ayumilong/rethinkdb,eliangidoni/rethinkdb,scripni/rethinkdb,victorbriz/rethinkdb,urandu/rethinkdb,ayumilong/rethinkdb,greyhwndz/rethinkdb,ayumilong/rethinkdb,marshall007/rethinkdb,wujf/rethinkdb,tempbottle/rethinkdb,ajose01/rethinkdb,marshall007/rethinkdb,eliangidoni/rethinkdb,matthaywardwebdesign/rethinkdb,mcanthony/rethinkdb,catroot/rethinkdb,victorbriz/rethinkdb,eliangidoni/rethinkdb,captainpete/rethinkdb,4talesa/rethinkdb,matthaywardwebdesign/rethinkdb,mquandalle/rethinkdb,marshall007/rethinkdb,gdi2290/rethinkdb,dparnell/rethinkdb,scripni/rethinkdb,dparnell/rethinkdb,elkingtonmcb/rethinkdb,grandquista/rethinkdb,robertjpayne/rethinkdb,jmptrader/rethinkdb,jesseditson/rethinkdb,losywee/rethinkdb,sbusso/rethinkdb,yakovenkodenis/rethinkdb,catroot/rethinkdb,matthaywardwebdesign/rethinkdb,gavioto/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,gavioto/rethinkdb,alash3al/rethinkdb,yakovenkodenis/rethinkdb,dparnell/rethinkdb,jmptrader/rethinkdb,losywee/rethinkdb,grandquista/rethinkdb,robertjpayne/rethinkdb,wojons/rethinkdb,rrampage/rethinkdb,Qinusty/rethinkdb,Qinusty/rethinkdb,lenstr/rethinkdb,scripni/rethinkdb,alash3al/rethinkdb,robertjpayne/rethinkdb,grandquista/rethinkdb,Qinusty/rethinkdb,sontek/rethinkdb,yakovenkodenis/rethinkdb,catroot/rethinkdb,ajose01/rethinkdb,Qinusty/rethinkdb,pap/rethinkdb,matthaywardwebdesign/rethinkdb,elkingtonmcb/rethinkdb,gdi2290/rethinkdb,urandu/rethinkdb,Qinusty/rethinkdb,bchavez/rethinkdb,yakovenkodenis/rethinkdb,bpradipt/rethinkdb,RubenKelevra/rethinkdb,eliangidoni/rethinkdb,bpradipt/rethinkdb,wojons/rethinkdb,lenstr/rethinkdb,sebadiaz/rethinkdb,yaolinz/rethinkdb,captainpete/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,captainpete/rethinkdb,elkingtonmcb/rethinkdb,sontek/rethinkdb,spblightadv/rethinkdb,mcanthony/rethinkdb,AntouanK/rethinkdb,gdi2290/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,KSanthanam/rethinkdb,Wilbeibi/rethinkdb,sbusso/rethinkdb,greyhwndz/rethinkdb,catroot/rethinkdb,Wilbeibi/rethinkdb,bchavez/rethinkdb,eliangidoni/rethinkdb,matthaywardwebdesign/rethinkdb,rrampage/rethinkdb,scripni/rethinkdb,scripni/rethinkdb,bpradipt/rethinkdb,sbusso/rethinkdb,captainpete/rethinkdb,grandquista/rethinkdb,alash3al/rethinkdb,rrampage/rethinkdb,wujf/rethinkdb,mcanthony/rethinkdb,losywee/rethinkdb,4talesa/rethinkdb,lenstr/rethinkdb,jesseditson/rethinkdb,Wilbeibi/rethinkdb,gavioto/rethinkdb,ajose01/rethinkdb,yaolinz/rethinkdb,ayumilong/rethinkdb,yakovenkodenis/rethinkdb,grandquista/rethinkdb,pap/rethinkdb,lenstr/rethinkdb,eliangidoni/rethinkdb,ajose01/rethinkdb,sebadiaz/rethinkdb,sebadiaz/rethinkdb,urandu/rethinkdb,yaolinz/rethinkdb,gdi2290/rethinkdb,spblightadv/rethinkdb,alash3al/rethinkdb,4talesa/rethinkdb,sbusso/rethinkdb,scripni/rethinkdb,spblightadv/rethinkdb,JackieXie168/rethinkdb,mquandalle/rethinkdb,AntouanK/rethinkdb,victorbriz/rethinkdb,lenstr/rethinkdb,KSanthanam/rethinkdb,ayumilong/rethinkdb,alash3al/rethinkdb,victorbriz/rethinkdb,losywee/rethinkdb,jesseditson/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,4talesa/rethinkdb,dparnell/rethinkdb,elkingtonmcb/rethinkdb,spblightadv/rethinkdb,spblightadv/rethinkdb,tempbottle/rethinkdb,lenstr/rethinkdb,bchavez/rethinkdb,jmptrader/rethinkdb,ayumilong/rethinkdb,captainpete/rethinkdb,marshall007/rethinkdb,sebadiaz/rethinkdb,mcanthony/rethinkdb,ajose01/rethinkdb,bchavez/rethinkdb,yaolinz/rethinkdb,RubenKelevra/rethinkdb,yakovenkodenis/rethinkdb,urandu/rethinkdb,jmptrader/rethinkdb,wojons/rethinkdb,wujf/rethinkdb,mbroadst/rethinkdb,sontek/rethinkdb,yaolinz/rethinkdb,sbusso/rethinkdb,wkennington/rethinkdb,robertjpayne/rethinkdb,eliangidoni/rethinkdb,Wilbeibi/rethinkdb,JackieXie168/rethinkdb,mbroadst/rethinkdb,wkennington/rethinkdb,tempbottle/rethinkdb,mbroadst/rethinkdb,robertjpayne/rethinkdb,spblightadv/rethinkdb,matthaywardwebdesign/rethinkdb,catroot/rethinkdb,robertjpayne/rethinkdb,jesseditson/rethinkdb,sbusso/rethinkdb,ayumilong/rethinkdb,rrampage/rethinkdb,wkennington/rethinkdb,niieani/rethinkdb,elkingtonmcb/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,tempbottle/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,gdi2290/rethinkdb,robertjpayne/rethinkdb,Wilbeibi/rethinkdb,4talesa/rethinkdb,bchavez/rethinkdb,AntouanK/rethinkdb,losywee/rethinkdb,greyhwndz/rethinkdb,scripni/rethinkdb,KSanthanam/rethinkdb