Update AppKit.php

Fixed render function so it returns a string instead of just sending the data to the output buffer