trailing string in javascript
find a writer in javascript
stack implementation for javascript