[JS] Enhance simple actor model adding guards