adapted example to structure similar to foxx-authentification app

in newer f0xx demo apps the controller is called controller and it is following the module pattern wrapping everything in an anonymous function. Adapted this in the basic example.