Formatted the code and fixed an extra });