trying to fix js compile error