fixes to the path of JS resources for running your website in a virtual directory or sub folder