change priority of script enqueues and default to in_footer when possible