Re-add ability to skip loader effects when no 'createClass' call is found and fix issue with javascript global regexes and their persistent state