Updates for parsing issues

add required markup
for images

attempt to squash the JavaScript bug