made mixin work better with js