changed js to help with debugging