format homepage js