Securing Ajax Applications: Ensuring the Safety of the Dynamic Web