Removes unnecessary type attributes in script tags