Add js to generate html