JavaScript examples and tutorial codes