Broke script.js into two - moviehandler.js and uihandler.js
Renamed getMovies to fetchMovies and added parameters.
Removed setSource function, added getMovies function.
Moved source switch to uihandler.js, fetchMovies now takes method as parameter instead.
Moved UI handling to uihandler.js
Added callback to fetchMovies.
Updated script names in index.html
Cleaned moviehandler.js
Changed setRatings to getRatings
Changed setRatings to getRatings
Renamed newSource to showSourceSelector.
Changed 'random' source to 'trending'.
More cleaning up names.
Removed non functional code.
Only hide overlay if source selector is not visible.
Make source variable global, so the two source selector places are linked.
Reworked source selector
Undoing some changes, doing this another way.
Trending should be checked at the start.
Changed source selector popup settings.