add Homepage JS handling