Split ajax and serialize into their own lib modules