trying to fix js-compiling error