example on how to deouple views in html / javascript with actor model thinking