Simple javascript markdown parser