Javascript Query in Query Library

Could the ability to create javascript queries be added to the query library? Would enable the ability to share javascript functions across apps.