Update processAtlasTags.js

adding Shanti's updates