move helper function eG_checkDailyReadingsFolder to functions.js
declared some undeclared variables
assumed that unused variable i refers here to parameter actionNumber
minor changes
fixed warnings about accessing undefined properties