simple cube drawing in browser