Moved scope checkbox js to assets. Improved oauth scopes code