added pig.js to manage HTML; player now is model, not view