javascript: short exmaples