Various cleanup in constellation.rs.
auto merge of #4019 : Ms2ger/servo/constellation, r=mbrubeck
Lower case the type attribute before checking if it's JS