Create authorize.js

Main file to run.