added jquery and calculating diff on input