Adding title, fixing JS