made minor changes to index and js file