Update to support https

This fix includes fixes to cache the htmlelementcollection as an array.
It also caches the tag so it isn't accessed from the array every time