fixed Issue #117 properly (in source dir); added test

sorry for the repeat! My last PR #144 modified tv4.js directly, which was bad