create credential by js