Changed to render HTML instead of Javascript... reasonably well.