The code for this toy is contained in this page, and is available under both the GPL and MIT licenses . View source and help yourself.