Updated JS library and instructions, registration code fix