Update create.js

Allow pass undefined properties and get the correct `defaultTo`