Updated js and index