Fix require and modules warnings

I think it's cleaner to do it this way than to use /* global require */
Remove controls
Configurable pinned width