Moved return $node outside loop

There was an issue where I was passing multiple data-attributes to a node, however only the first was returning.  Turns out the return $node was inside the for loop so only ever done once.