Finished updating code for standalone demo and code; now uses jQuery