[feat] basic stack implementation using js native array