more wip for JS function calls