Shallow copy of views, fixes #112 and handled the API change of html5 mode, fixes #121

In preparation for 1.3