add generate script for index.html generation