something might be broken

related to require js.

most of the changes are just formatting