javascript substring after first occurrence