Debugging javascript old school