added type attribute to button so it won't be treated as a submit button if it happens to be inside a form (e.g. fix for ASP.NET)