How To Use Stack In Javascript