fix bugs in RockAttributeEditor (was having javascript issues when there were multiple rockattributeeditors on a page)