some simple js function errors for debugging tutorial