Direct render with method called in window (in onclick)