Require.JS  homework

task 1 and task 2 united