First step migration to javascript env bound to view.
example2 workinG