Fixed Javascript IDE warnings