script to help debugging javascript