OPAL-1876  implemented by adding View object in the magma javascript context