remove window.markdown global var, update setTimeout for promise-like pattern, jslinted.

oh I didn't test, did this @barisusakli promode.
also showing markdown preview in composer
0.8.4