Fixed removeBehaviour() in Actor.js

Previously, the loop only checked one value of n. Added decremement, and escape condition. Without these, function was prone to loop forever.

Also renamed function, as British spelling of "behaviour" (with a 'u') not consistent with usage through the rest of the CAAT code-base.