Fixes paths so index properly loads assets.