Update authorization.js

make sure scope is present.