every line needs to end with a semicolon

so instead of:
backpack1.setIntAttribute("cat_stat_mod_bonus.@stat_n:strength_modified", 30)

you should do:
backpack1.setIntAttribute("cat_stat_mod_bonus.@stat_n:strength_modified", 30);