moved JSON as third party lib instead of dep. Modded for browser support