Moved javascript code for agenda config into extra file.

Moved translation to correct area for javascript files.