Can you extract these external scripts into a dedicated file and then require it here?