ignore parsecloud
code cleanup, use $timeout
use var instead of const
code cleanup