Fixed js syntax to satisfy 'use strict'

* Fixes tap test failure