Crypto Square in JS