Javascript framework (week 3)