Fix a bug in js driver.
Fix a bug in js driver.

rql-tests now all pass.

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