How To Use Stack In Javascript Code