updated simple.js