Finitio - In JavaScript