Fix bug where js and css assests were not loaded in ajax requests