HTML final/semester grade calculator