Some trig functions in a browser for fun