Callback function for when village is done
Javascript cleanup