front page js working wihtin a degree of satisfaction