added ajax functionality

added functions to support ajax to funcs.js, removed hardcoded teams,
updated choose teams function to be more versatile (sets league and team
hidden inputs and submits form)