Fix package json and add mixins function