remove sensitive data from js array