Fixed: Re-instate top/left of viewport calculations

At least temporarily we'll leave the jQuery version in place.
Merge branch 'develop' of github.com:DDMAL/diva.js into develop