Change to fix bug with tracking being stored in localstorage
JSLintted datamanipulation