Update functions.php

Updated jQuery url reference. Checking for SERVER_PORT is not required, as the browser does it automatically.