fix js asset loading