fixes #1150 buffer slice issue in JS
fixes #1150 buffer slice issue in JS

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