JS method changes