Correct JS syntax for dummies
Made all pages dynamics