Code for browser based digital content viewer