Changes for appmaker

These changes were necessary for integration in Appmaker. 

You can see how the css function argument to `ready()` was used [here](https://github.com/mozilla-appmaker/appmaker/pull/1941/files#diff-96a7e0ed9d87315d6345692cd70a4726R86).