lots of javascript on the create league page