moved inline scripts in activequiz view to typescript files