Fixed media upload dialogue for WP 3.6

Updated jQuery syntax so the media upload button click event is fired correctly.