set default loadersnippet extension to js instead of txt

set the default extension to js so that it could be loaded in the browser through a script tag without additional configuration or supplying a custom filename in the task definition.