testing external javascript with buttons