Actually export the app constructor

Score one for mistakes made because I thought this was Lua