Added vanilla js smooth scrolling and some conditional shorthands