Tidied up smoothscrolling

Rewrote smooth scroll to use jQuery. Also moved javascript from HEAD tag