I was using the attribute as the object id in the html page. By splitting the two, I can have the same attribute set in multiple places on a single page independently.
The utils.js file is an external javascript file that will make it easier to set attributes / do controls from more than one page.