you also need to replace the apostrophes with quotation marks, like this:

backpack.setIntAttribute("...")