changes in animate method
added "deps" option in scripts config