Fix bug 1088816 - Support instant login with plain JS adapter