change js to lua