Changes to public/javascript files to allow the application to run under a subdirectory.
Change paths in incomingmenu for application to run in a subdirectory.