Removed testing sleep, cleaned up javascript example.