Create idealkg.js