learn from jquery to product my own js tool library