WIP: designing intermediate representation for JS and Lua backends