Improving module Ajax