ensure merchant js is only ever called once