Since window.localStorage.getItem() always returns a string, the options are set with 1 and 0 for true and false and recast to Numbers when assigned to a checkbox's "checked" property, which will cast them as booleans.