Remove extra curly brace from end of script