Some JavaScript techniques you must know