js small adjustment