Update AdvancedHTTPServer for better directory support
Add a server side javascript hook