remove some global vars
revert change made while testing
freedom.js is typescript so make the filename reflect that!