javascript substring after space