Conway's polyhedral notation in JavaScript