Bugfix: typos from moving the js out to a separate file