added debugger to js"