moved js code to organize.js (sorry wrong headline in git wrote #8860 instead of #8863)