Ajax rewrited in a more direct and dummy but less coupled manner, which is good although painstaking