use freedom.js throughout