move init of js validate var to autoload

html validate may call js validation, but the ftplugin may not be
loaded, resulting in an error do to the js validate var not yet being
defined.