add support for protocol-relative URLs

fixes bug in isAbsolutePath which will return false for a URL like '//cdn.com/lib.js'