Add a make rule to build the packaged app.
Fix external.js so that compiler won't rename function names.