JS priority