Use protocol relative URL to let the browser decide if use SSL api or not according the current protocol
removing code that is not needed anymore