Sure, it is described here:
You would just have to replace “moment” with the SugarJS library.
I hope that helps!