Start of survey creation js classes.