Bugfixes to allow for js compilation
Moved main code to a module
Added package description for app