Port of Piccolo2d to JavaScript