There are some major issues concerning the HTML produced...
The page generated by view.php starts with
<h1>title<small>filename</small></h1> instead of <html>
At the bottom there is a comment
<!- face_end END --> (has to bee <!--)
Maybe you could have a look at a HTML validator like
Thank you very much for your great work.