Fix bug in javascript asset registration that prevented oauth redirections.
More generic sample settings.