Move custom.js to head

The script was being called at the end of <body> while tablesorter is called in the head and resulting in 'no tablesorter method' error.