I think best pratices encourage to put all that JS at the end of the file.