remove unused files
delete unused files
use $interval instead of $timeout
refactor