JAX'ed it up

Added AJAX
Added flags
Little cleanup

its working like a champ!