Fixed Javascript Error