updated smoothscroll and optimized javascript
indentation and trailing spaces