Translate angular code for editing media into jquery post calls.