Lower case the type attribute before checking if it's JS
auto merge of #4021 : letharion/servo/Case-insensitive-HTMLScriptElementHelpers-comparision, r=Ms2ger

Fix for #3993