Update strings and debugging javascript