Fix #316: Automatically JSExport App.main
Merge pull request #317 from gzm0/export-app-main

Fix #316: Automatically JSExport App.main