Refactored with markdown-js embedded