This document discusses extending JavaScript by creating type-safe collections like stacks and queues. It provides a plan and implementation for creating a Stack class with methods like push(), pop(), getValue() and setValue(). The same approach is then used to create a Queue class, with the only difference being the exit() method removes items from the front rather than back of the internal array. The document ends by demonstrating how to test the classes.