Fixed Javascript engine