A pure JavaScript implementation of the Goertzel algorithm.