fixed update bug and added goals.js