Javascript: First 2D test