Implemented history range choice. Added jquery and jquery UI. Still some
fixes needed, especially refactoring.