Registration and JavaScript test