still debugging javascript