Move homepage js to partial