Remove the Last Character from a JavaScript String | CodeTrail