fix remote url check when adding js prefix