oops, had forgotten to include the external JS file