Reimplemented all C# files as JavaScript

First round of C# to JavaScript conversions. Addresses Issue #12