Add return-statement to example factory

Otherwise Angular cannot use the factory.
Merge pull request #138 from contradictioned/patch-1

Add return-statement to example factory