Enable js and sprintf arguments in admin templates

Prevent JavaScript errors and allows the use of sprintf.