Input Type Checkbox Checked Javascript Substring