fixed badge choice page

``$(function() {`` is a shorthand in jQuery for ``$(document).ready(function() {`` so I changed it to the simpler version.