[index] Add init.js, rename help.js, and reorder js includes.
[keys] Use keys.js to determine state transition.