Fix divide button so it works on all browsers