fix startup bug
basic freedom.js unit tests passing