homework for https://iversity.org/my/courses/web-engineering-ii-developing-mobile-html5-apps/