create entry in javascript