some little programs written by javascript