Added a preview image, fixed a html bug and fixed a js bug.