trying to send back mediaId to JS