refactor/update $createObservableFunction example

make use of html form submit event and $scope