JS: Strip protocols