Javascript file manager

First draft to generate image path directly from a view using javascript.