trying to fix a int parsing bug that happens when compiled to JS