Fixing asset loading for https