JS to C

by Tim Ruffles, see my blog for the dev log.