Change order pins js