javascript syntax error at damagebook.js