JavaScript - Checks if two stacks are equal

JavaScript - Checks if two stacks are equal