Initial dist subtree commit.
Cleaned up code. JS still not working correctly.