Moved smooth scroll javascript to external file