Here is my JavaScript code so far:
var linkElement = document.getElementById(\"BackButton\"); var loc_array = document.location.href.split(\'/\'); var newT =
jQuery solves this neatly:
> $([1,2,3]).get(-1) 3 > $([]).get(-1) undefined