Cleaned up html, javascript, added comments