Adding async and defer attributes JavaScript