JavaScript version of Sass' mix() function