CRM-13142 limited tidy up to extract js from tpl using new standards (I have completely tidied up & jslinted it  into a new file but discarded after a tidy up was merged in from 4.3
CRM-13142 if only one membership organization exists then prefill it (unless membership field is optional), add -select- to types as the default
Merge pull request #1300 from eileenmcnaughton/CRM-13142

CRM-13142 limited tidy up to extract js from tpl using new standards