Update src/stack.js

changed pattern for array parameter to match push, renamed add and addaAll