Patch of media module

Patch resolves some javascript issues on media browser thingy.