winjs app lifecycle homework