Adding semicolons to end function declarations properly