Fix undeclared variable 'players'.  Move document ready to the bottom.