Moved the javascript to a separate file. Also implement random selection function, rewrote the season-selection query, and fixed a few typos.