add advanced markdown parsing via javascript
clean up manual markdown, js bug fix
only preload gifs on homepage