added watch for js