Use $.showModal instead of mw.notify which does not exists in Wikia code...

...base