js: whitespace changes only
js: simplify insta declaration
js: create config object
js: apiUrl variable is now getApiUrl function. allows variables
js: getMediaUrl()
whitespace
js: simplify clickEvent
js: use $.getJSON instead of $.ajax