pure data in javascript