Fix typos, JavaScript references