Update pin codes JS