add some tools for phantom markdown
Promise.js docstring + code modfication for jslint