give packaged app a visible title
move JS to separate file to conform with CSP