Adds var l to hold data.length as per Jacob Hesch presentation