fixed built javascript error