Fixed JS in XHTML files to prevent autoscrolling