remove space, add ; after function close tag