canvas and js tests