Fix bug for firefox where object.watch is interpreted as a html attribute

This causes the split function to fail because attr['watch'] is a function.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch