add closure and prototype
add index.html