Refactor jotform api framework.