Get value of a string after last slash in JavaScript