double pure data in javascript