Basic JS Stack without Array