Refactor Highchart's render method