Fix a variable is undefined forever

The variable captable will be undefined forever unless remove the declaration, because the "var cptable=xxx" will create a undefined variable in the first by javascript interpreter.