compact jshapes.js