js fixes for resets