Add Javascript fix in filebrowser's template field