Turn QAST::OperationsJS methods into subs for concisness.