Fix js traversal idiosyncrasies