consistent JS style, fixed error in clearInputs that I wasn't aware of