further revisions to yin-yang.js