changing activities day screen to run more process in javascript