Revert "Rename lib/ back to js/" and fix bug in CSTable lookup.

This reverts commit 21382156da0a4a6b8837432d9b075f4745afa3a0.