Texture Wrapping

I’ve just started working more with WebGL and I came across a problem. I want a texture to repeat along a box but it’s just stretching. I know that textureWrap() should solve this, but for some reason, it’s still stretching. I’m using REPEAT and my texture is 256 x 256.