Cleanup for some parts.

Change the main js file for babel.js and also add the user object to all
the layouts.