Javascript dependency tracker