Get Input Checkbox Value Javascript Substring Function