I am modifying a HTML5 app that records time time spent on project, date and project code. It uses localstorage and there are two kinds of keys in the localstorage - timestamp keys  and  one other key called 'userdetails'. The code below lists all data in storage. I would like to list only timestamped data eand not the data contained in key 'userdetails'. 
function getAllItems() {
var timeLog = "";
var i = 0;
var logLength = localStorage.length-1;
var totalHours = 0.0;   
for (i = 0; i <= logLength; i++) {
    var itemKey = localStorage.key(i);
    var values = localStorage.getItem(itemKey);
    values = values.split(";");
    var code = values[0];
    var hours = values[1];
    var date = values[2];