fix: handle uncaught exception in app.js.
change: use "mac" instead of "mac os x" to refer Mac OS X.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>