corrected javascript in session 2