add prescription data in javascript