Fix JS bug in order OPC. Add credit.
fix perms