refactor code: move everything into <body> tag