fixed badly compiled js