cleaned up some code

Changed invalid </br> tags with <br />, separated HTML and JavaScript
from PHP-Echos