Cleanup media js