js structure, media delete