Fix particle scaling in CocoonJS environments.

Also add documentation for config objects.