3D matrix rotation & object display in Javascript/Canvas