Removed protocol from badge image in js