connected checkbox values to javascript variables