simplifying media db function in serendipity_editor.js and correcting a mixup with serendipity[isLink] in media_chooser