expose view as global in example
fix loadStyles reference