fix missing getCanvas and placeCanvasInStack functions
fix custom polyline in emscripten box2d