Pintograph simulator in Javascript