We've posted a behavior tree action template in our code samples area that will help with defining actions in JavaScript. For the most part, you shouldn't run into many issues. If you are using SimpleMind, we'll be posting a sample action for that soon (as in, I'm looking over at Eridanus and Scotch who are taking care of posting it.)