Javascript required for cube to display.