Add a check for the async or defer properties on script elements before erroring. Closes #4.