putting all code in index,htlm file