JavaScript examples and homeworks