Fixed bug with slash in item path in uploading media from JS.