Can now serve static as well as dynamic content. Seems that there are still some error in the javascript code however.