Cleanup and update

-cleanup in javascript code in examples
-updated javascript libraries & models
-added example.html