CRM-12942#comment-51519 fix
CRM-12942 : added closure for function definition and its usage, as to remove its global definition as mentioned in comment for PR#1059
fixed CRM-12976, problem was regex characters were not escaped
worked on CRM-12916, setting state defaults
Merge pull request #1072 from kurund/CRM-12976

fixed CRM-12976, problem was regex characters were not escaped
Tested locally and this fixes the problem.
Merge pull request #1059 from pratik-joshi/CRM-12942

CRM-12942  fix
enotice fix
Merge pull request #1089 from eileenmcnaughton/e-notice

enotice fix
Merge pull request #1074 from kurund/CRM-12916

worked on CRM-12916, setting state defaults
code indentation fixes
notice fixes / indentation
Merge pull request #1094 from kurund/CRM-12976

CRM-12976