/*global $:false */
'use strict';

var MovieApp = MovieApp || {
    url: 'http://localhost:3000'
};

$(document).ready(function(){
  console.log('movie_index loaded');
});

@@ -1,8 +1,14 @@
+// DS%0A
 /*global
@@ -63,18 +63,16 @@
 pp %7C%7C %7B%0A
-  
   url: '
@@ -98,16 +98,411 @@
 00'%0A%7D;%0A%0A
+MovieApp.createHTML = function(movie)%7B%0A  var html = '%3Cli%3E' + movie.title + '%3C/li%3E';%0A  $('ul#movies').append(html);%0A%7D;%0A%0AMovieApp.renderMovie = function(movie)%7B%0A  MovieApp.createHTML(movie);%0A%7D;%0A%0AMovieApp.renderMovies = function(movies)%7B%0A  movies.forEach(MovieApp.renderMovie);%0A%7D;%0A%0AMovieApp.showMovies = function()%7B%0A  $.get(MovieApp.url, function(data) %7B%0A    MovieApp.renderMovies(data);%0A  %7D);%0A%7D;%0A%0A
 $(docume
@@ -560,12 +560,37 @@
 aded');%0A
+  MovieApp.showMovies();%0A
 %7D);%0A

establish basic functionality to show all movies on index page