Removed all chunk generation functions from JavaScript.