Cleaned up a bit and moved JS and CSS outside of the PHP source