Add custom lib to frappe without api

How can I add a library like Persiantools to Frappe that can be accessed as “frappe.persiantools.jdatetime.JalaliDate.today()” even in the javascript file?