Help use general js method