update main js with debugger