Create magpie.js