Issue #1507954 by nod_, boombatower | silinor: Fixed Global selector in states.js brakes some scripts.