Added an inline script to make the userId available to main.js. Signing in loads the user's saved courses.