JS: ineffizienten Funktionsaufruf gefixt (von jshint)