Create onlyregistercb.js