move external javascripts to end of body with separate component