Refactor some code .

1. change new Array to []
2. extract function initializeDefaultTags
3. using "=== undefined" to judge undefined object
4. filter before todos , not parse all files again.