added controller to show a js object