fixed the js for process