crean up stack.js