Created geometry.js for the low-level drawing functions