Canvas API for scalejs app