refactored public folder because it had no structure.

tests go in test/, our files go in js/, and 3rd party things go in lib/