Refactor and clean up code for v3.0.0, add web files for purejs.org to repo