layout and markdown js lib