A Graphics API in javascript