reseting js for ui priority