changed js method..