fix missing value create_by in period form
fix errors in formating value for js code