added consolidate scope data method to refactored code
final_shadow.rb now renders data correctly in test.html