Add JavaScript times method extend.