a code collection for javascript data structure and algorithm