Making the actual application work again

Grr... this was kinda unintuitive.
Making proper use of 'require' (instead of 'define')
Fixing 'Function' module definition...
Adding more preferable 'require' usages