Move all scripts taht aren't included by the masterpage to the "Scripts" ContentPlaceHolderID, essentially they'll all be at the bottom of the body.