remove out of bounds safety for js since c++ throws for out of bounds