pass init params in direct.js