Fix JS on admin pages. Fixes #435