reverting button js call