change prototype to jquery