made a couple of minor refactorings

added DOCTYPE to views
edited to use locals instead of TASK_LIST constant
use each_with_index instead of index counter for homepage