added scrolling. Cleaned up html and js and added some comments.