Move home links definition into js.