Fixed JS error in compiled js file