Add live markdown preview with Javascript