added frontpage conditional for js