basic stack in JS
get min value of stack