cronjobs/js helper: remove specialized js function in favor of global helper function, re #4308, refines [29971]

git-svn-id: svn://develop.studip.de/studip/trunk@30085 c5b85792-5220-0410-ad23-ed5b6b8ad999