Need simple javascript audio patch

Bertie Alexander's icon

Hey I'm doing some work with Java and I need a relatively simple patch (ie an arpeggiator or drum machine) using; if statements, arrays, while loops and possibly strings.
If anyone could post a patch with code for an mxj quickie object that would be a massive massive help,

long shot I know but could really use a break right now