changed script elements to defer loading