Index js fix