Fixed app loading hanging on "/"
Removed unnecesary controller
Changed the code style for using `define()`