Remove Ajax and jQuery module, code cleanup and optimization