Latest version of JQuery does not support toggle method any more. So I found one solution how to fix it, I can add jquery-migrate.js - this library contains all old methods which is not supported now.
But I think it's dirty solution, to add library only for fixing one method. Does anyone have an idea - how to return this method whith js?