Fixed sample rate issue. Cleaned up example HTML a bit.