ring(name, windowLocation) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = windowLocation.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
};

var windowLocation = window.location;
var movieId = getQueryString("movieId",windowLocation);

var baseUrl = windowLocation.protocol + "//" + windowLocation.host + "/"

addMovieDetails("movie-details-container", movieId, baseUrl);
addRelatedMovies("#recPage", "relatedMovies", movieI