add example JS file to resources