Change constructor to use dojo.mixin