set inflation by clicking, wrap js in document ready