Javascript file manager

First draft to generate image path directly from a view using javascript.
**Note:** if you are not using Twig, that's not a problem. What you need is to
load the JavaScript file above somewhere in your web page.