adding missing transact javascript