type is not needed if javascript