ajax function passes data to express