Simple markdown parser JavaScript