Redesigned to use the viewer javascript library

Redesigned to use the library "library-javascript-view.and.data.api"