Rebuilt index.rb to allow for properly formatted dynamic data population