added js to index