Revert "Fix bug in javascript asset registration that prevented oauth redirections."

This reverts commit af5b1fc5aa3850c445fae79236238aa1a409fe6e.