added javascript portion to midterm