further modified beastsprite.js to facilitate embedding, and added embedtest.html to test embed html in an environment outside of website