Make JS reloadTypes variable behaves as a singleton
Fixed place where to set reloadTypes variable
Merge branch 'master' into issue_379

Conflicts:
	CHANGES.rst
Merge pull request #380 from collective/issue_379

Make JS reloadTypes variable behaves as a singleton