Simple cross platform audio pulse generator for javascript