replaced defn with letfn inside oj.core/exec

Probably shouldn't use defn inside of a function. I replaced defn with letfn.