respond create action to js for periods controller
js callback for create action of periods