Update Stack.js

Added more comments