add freelist.js to core