[app struct] js app struct

 * basic structure
 * basic key handler