F.LF/AI script to js translator