Added back UI JS and Reference

Also removed the JSON factory.