Implemented persistent category name

Implemented javascript handling of persistent category name in static file field. This fixes a bug where the the category had to be selected each time in order for the file path to stay the same.