Fix errors mentioned by JSHint
Merge pull request #1405 from opf/fix/8449_fix_js_errors

[Fix] 8449 Fix JS errors
specified full path to angular-truncate repo.
Merge branch 'dev' of github.com:opf/openproject into dev
Merge branch 'dev' into feature/reset-filters-on-query-clear-8386