Fixed JS IDE warnings