test incbehavior as behavior and modify js api to always compile to functions