added angular $interval usage #1
code cleanup #1