Fix assets in JS