my simple JavaScript snippets