deviceone autocreate lib.js