JS helper methods. Built during the otrax Project and open sourced for your convenience.