split the code in playground.js