changed js in index.html
changed js for mobile view