Render HTML using JavaScript objects