Register view & controller + js