Add in Tim's suggestions - cleanup one console.error

I added your suggestions.  I checked through your old versions and it appears that moment.version has been around for awhile.  But since the suggestion came from the original author I wasn't surprised!

I also changed one other area that was using the old console.error instead of logEntry

I kept my if check at the bottom to check for if(momentProperties) because this cleans up the uncaught exception