fixed js bug in create controller where socket was not being passed