[minor] move js to <head>

and text formatting