added stack.js to lib dir