add_assessment: Move the inline js to js file