Simplify $loader_url via url() function.

My previous commit didn't actually work because $GLOBALS['base_url'] includes the protocol, which we are also prefixing here.

However, if we reduce this whole block of code down, we're essentially reproducing the output of url(), a core function.