migrated params class to params.js file