JS files should be loaded after DOM elements
WIP
Change keyup to keypress

To support keypress of newline.
If we used keyup, we could not get the line content.