move JS out of XHTML

3 jobs for feature/autocompl in 4 minutes and 34 seconds (queued for 1 second)