Added flatten.rb, unchecked.js