revised js code to make sure box is always unchecked on load