Added first draft of registry content. Refactored javascript, added comments and removed errors